package com.controller.front_controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

@RequestMapping("/front_other")
@Controller
public class FrontOtherController {

    @RequestMapping("/check_login.do")
    @ResponseBody
    public int doCheck_login(HttpSession session){
        if(session.getAttribute("user_name")!=null){
            return 1;
        }else {
            return 0;
        }
    }
}
